package com.weimengchao.task.domain;

/**
 * 常用单元格格式枚举
 * 参考 org.apache.poi.ss.usermodel.BuiltinFormats._formats
 */
public enum Formats {

    General("General", "常规"),
    Currency1("#,##0.00", "货币,小数位2"),
    Currency2("\"$\"#,##0.00_);(\"$\"#,##0.00)", "货币,小数位2,货币符号￥"),
    Currency3("\"$\"#,##0.00_);[Red](\"$\"#,##0.00)", "货币,小数位2,货币符号￥,负数标红"),
    Currency4("#,##0", "货币,小数位0"),
    Currency5("\"$\"#,##0_);(\"$\"#,##0)", "货币,小数位0,货币符号￥"),
    Currency6("\"$\"#,##0_);[Red](\"$\"#,##0)", "货币,小数位0,货币符号￥,负数标红"),
    Percent1("0%", "百分比,小数位0"),
    Percent2("0.00%", "百分比,小数位2"),
    Text("@", "文本"),
    date1("yy/d/m h:mm", "日期yy/d/m h:mm"),
    ;

    private final String format;
    private final String desc;

    Formats(String format, String desc) {
        this.format = format;
        this.desc = desc;
    }

    public String getFormat() {
        return format;
    }

    public String getDesc() {
        return desc;
    }
}
